package com.example.builderPattern;

import com.example.builderPattern.burger.burgerItem.ChickenBurger;
import com.example.builderPattern.burger.burgerItem.VegBurger;
import com.example.builderPattern.coldDrink.coldDrinkItem.Coke;
import com.example.builderPattern.coldDrink.coldDrinkItem.Pepsi;

/**
 * 餐品构造
 * sun 2017-11-24.
 */
public class MealBuilder {
    //准备制造 蔬菜汉堡 + 可乐 套餐
    public Meal prepareVegMeal(){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    //准备制造 鸡肉汉堡 + 百事 套餐
    public Meal prepareChinckenMeal(){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
